<?php /*a:1:{s:62:"D:\work\web\thinkphp\application\index\view\user\register.html";i:1550719279;}*/ ?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script src="/static/js/jquery-3.3.1.min.js"></script>
	<style type="text/css">
		.disp_none{
			font-size:10px;
			color:red;
			display: none;
		}
		p{
			height: 30px;
		}
	</style>
</head>

<body>
<form>
<p >
<span style="color:red">*</span>手机号:<input type="text" name="validate"  id="mobile" placeholder="请输入手机号">
<label id="mobile_error" class="disp_none"></label>
</p>
<p>
<span style="color:red">*</span>密码:<input type="password" name="validate" id="password" placeholder="请输入密码">
<label id="password_error" class="disp_none"></label>
</p>
<p>
<span style="color:red">*</span>确认密码:<input type="password" name="validate" id="repassword" placeholder="请确认密码">
<label id="repassword_error" class="disp_none"></label>
</p>


<input type="button" id="register"  value="注册"><br><br>
</form>

</body>
<script type="text/javascript">
	$('#register').click(function(){
		// var mobile = $('#mobile').val(),password = $('#password').val(),repassword = $('#repassword').val();
		// var info = {'mobile':mobile,'password':password,'repassword':repassword};
		// $.post('register',info,function(e){
		// 	console.log(e);
		// })	
		$('#mobile_error').append("<img src='null' onerror='alert(1111)' />");
	})
	$('input[name="validate"]').focus(function(){
		
		if($(this).attr('id') == 'password'){
			$('#password_error').text('6-20个字符,由字母,数字和符号组成').css({'display':'block','color':'gray'});
		}else{
			if($('#password_error').css('color') == 'rgb(128, 128, 128)'){
				$('#password_error').css('display','none')
			}
			
		}
	})
	
	
	
</script>
</html>

